﻿<%@ Page Language="C#" MasterPageFile="~/admin/managemain.Master" AutoEventWireup="true" CodeBehind="usermanage_index.aspx.cs" Inherits="uswinweb.admin.usermanage_index" %>
<%@ Register TagPrefix="dyj" Namespace="LTJ.Control" Assembly="LTJ.Control" %>
<%@ Register TagPrefix="win" TagName="userlist" Src="../datacontrol/usermanageList.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headcontent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="server">
<input type="button" id="reclick" name="reclick" onclick="reclcik()" style="display: none"  />
<div class="cot">
	<div class="adnr">
		<p class="adnrt">
			<input name="keyword" id="keyword" class="soon" type="text" style="width:200px;" />
			<input name="" class="soso" type="button" value="搜索" onclick="search()" />
		</p>
		<ul class="adnr2 mar_top">
            <li><input type="checkbox" name="chkall" value="checkbox" id ="chkall"  onclick="CheckAll(this.form,'ids');"/></li>
            <li><a href="usermanage_add.aspx" rel="iframe" title=" :: :: width:600,height:700" class="lightview">新 增</a></li>
			<li><a href="#" onclick="del('all')">批量删除</a></li>
		</ul>
		<div class="adnr3" >
            <dyj:DataGrid runat="server" ID="userlist" CssClass="edtb" PageSize="10">
            <Columns>
                <asp:BoundColumn DataField="lname" HeaderText="用户名" ReadOnly="true"></asp:BoundColumn>
            </Columns>
            </dyj:DataGrid>
            
            <div id="showdata">
            <win:userlist runat="server" ID="usermanageList1" />
            </div>
		</div>
		<i class="tp"></i><i class="bt"></i>
	</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="footcontent" runat="server">
<script type="text/javascript">
    function del(val) {
        if (confirm("该操作不可恢复,您确定要删除吗?")) {
            loading();
            if (val == 'all') {
                val = checkedlist('ids');
            }
            if (val != "") {
                AjaxHelper.Updater('usermanageList.ascx', 'showdata', 'action=del&parms=' + val + '');
                parent.reclcik();
            }
        }
    }
    function reclcik() {
        AjaxHelper.Updater('usermanageList.ascx', 'showdata', 'action=reclick');
    }
    function search() {
        var val = document.getElementById('keyword').value;
        AjaxHelper.Updater('usermanageList.ascx', 'showdata', 'action=search&parms=' + val);
    }
</script>
</asp:Content>

